<form class="form-inline" method="get">
    <div class="col-xs-12">
        <button type="button" onclick="modal('{:url(\'addSwiper\')}', '添加轮播图', '80%', '80%')" class="btn btn-success">
            添加轮播图
        </button>
    </div>
</form>
<hr>

<table class="table table-striped table-bordered">
    <thead>
    <tr>
        <td>ID</td>
        <td>图片</td>
        <td>排序号</td>
        <td>添加时间</td>
        <td>更新时间</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>
            <img src="{$item.img_url}" style="width: 120px;" alt="">
        </td>
        <td>{$item.display_order}</td>
        <td>
            {:date("Y-m-d H:i:s", $item.create_time)}
        </td>
        <td>
            {:date("Y-m-d H:i:s", $item.update_time)}
        </td>
        <td>
                <a href="javascript:;" data-toggle="confirm" data-title="确定删除此记录？" data-url="{:url('Shop/delSwiper', ['id'=>$item.id])}" class="btn btn-default">
                    删除
                </a>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>
